// jSX 列表渲染
// 主要通过数组的map函数来实现

import { Button, StyleSheet, View } from 'react-native';

export default function App() {
  const list = ['苹果', '香蕉', '西瓜', '葡萄'];
  return (
    <>
      <View>
        {list.map((item, index) => (
          <Button title={item + index} key={index}></Button>
        ))}
      </View>
    </>
  );
}

const styles = StyleSheet.create({});
